﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="login2.ascx.cs" Inherits="login2" %>
<style type="text/css">
    .style1
    {
    }
    .style6
    {
        width: 115px;
    }
    .style7
    {
        width: 58%;
    }
</style>
<asp:Panel ID="pnlNotLoggedIn" runat="server" Height="151px" Width="309px" DefaultButton="btnLogin">
    <table class="style1">
        <tr>
            <td colspan="2">
                <asp:Label ID="Label1" runat="server" Text="User Login"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style6">
                <asp:Label ID="Label2" runat="server" Text="Enter card number:"></asp:Label>
            </td>
            <td class="style7">
                <asp:TextBox ID="txtCardNumber" runat="server" ValidationGroup="LoginGroup" Width="100"></asp:TextBox>
                <br />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtCardNumber" ErrorMessage="Card number required" ValidationGroup="LoginGroup"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style6">
                <asp:Label ID="Label3" runat="server" Text="Enter password:"></asp:Label>
            </td>
            <td class="style7">
                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" ValidationGroup="LoginGroup" Width="100"></asp:TextBox>
                <br />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtPassword" ErrorMessage="Password required" ValidationGroup="LoginGroup"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="btnLogin" runat="server" Text="Login" 
                onclick="btnLogin_Click" ValidationGroup="LoginGroup" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="lblMessage" runat="server" Text=""></asp:Label>
            </td>
        </tr>
    </table>
    
</asp:Panel>
<asp:Panel ID="pnlLoggedIn" runat="server" Height="73px" style="width: 854px" 
    Visible="False" Width="200px">
    <asp:Button ID="btnMyAccount" runat="server" Text="My Account" OnClick="btnMyAccount_Click"/>
    <br />
    <asp:Button ID="btnEmployeeView" runat="server" Text="Employee View" OnClick="btnEmployeeView_Click"/>
    <br />
    <asp:Button ID="btnLogOut" runat="server" Text="Log Out" OnClick="btnLogOut_Click" />
</asp:Panel>








